/*
 * @Author: wangqizhang
 * @Date: 2024-04-29 20:46:43
 * @LastEditors: wangqizhang
 * @LastEditTime: 2024-04-29 20:59:29
 * @FilePath: /suixinji-react/src/components/401/index.tsx
 * @Description:
 *
 * Copyright (c) 2024 by ${git_name_email}, All Rights Reserved.
 */
import { Result, Button } from 'antd';
import { useNavigate } from 'react-router-dom';
const NoPower = () => {
  const navigate = useNavigate();
  const back = () => {
    navigate('/login');
  };
  return (
    <Result
      className="container"
      status="500"
      title="401"
      subTitle="对不起，您没有权限访问该页面。"
      extra={
        <Button onClick={() => back()} type="primary">
          返回登陆页
        </Button>
      }
    />
  );
};
export default NoPower;
